package train;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Predict {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		System.out.println("Nhap thong so: ");
		
		BufferedReader buf = new BufferedReader (new InputStreamReader (System.in));
		String line = buf.readLine();
		
    	String input[] = line.split(" ");
    	System.out.println(line);
    	
    	de.bwaldvogel.liblinear.Predict predict = new de.bwaldvogel.liblinear.Predict();
    	predict.singleFile = "2 1042:0.000781817 4354:0.00233197 12191:0.00062874 28720:0.000760736 30418:0.00102232 44950:0.00121243";
    	predict.main(input);
    	System.out.println("predict : " + predict.accuracy);
    	System.out.println("singleFile : " + predict.singleFile);
    	
    	for(int i = 0; i < predict.predictLabelArray.size(); i++){
    		System.out.println("predict " + (i+1) + " : " + predict.predictLabelArray.get(i));
    	}

	}

}
